
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .keywords {
        width: 250px;
        font-family: '微软雅黑', sans-serif, serif;
    }
    .span_h{
        background-color: #eff0f1;display: block;height: 30px;
        font-size: 16px;
        line-height:30px;
    }

</style>

<div class="pageHeader">
    <form rel="pageForm" onsubmit="return navTabSearch(this);" action="<c:url value='/dangerInfo/sureQ'/>" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td class="dateRange">
                        上传时间：
                        <input type="text" value="<fmt:formatDate value="${query.start}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                               class="date" name="start" dateFmt="yyyy-MM-dd" style="width: 100px;">
                        <span class="limit">-</span>
                        <input type="text" value="<fmt:formatDate value="${query.end}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                               class="date" name="end"  dateFmt="yyyy-MM-dd" style="width: 100px;">
                    </td>
                    <td>区：</td>
                    <td>
                        <select class="combox" name="fjid" ref="yhxxqjdsel" refUrl="<c:url value="/danger/jl"/>?fjid={value}" >
                            <option value="" <c:if test="${query.data.fjid eq '' || query.data.fjid eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dicone" items="${dicone}">
                                <option value="${dicone.id}" <c:if test="${dicone.id eq query.data.fjid}">selected</c:if>>${dicone.name}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td> 街道：</td>
                    <td>
                        <select class="combox" name="pcsid" id="yhxxqjdsel" ref="yhxxqsqsel" refUrl="<c:url value="/danger/jl"/>?pcsid={value}" >
                            <option value="" <c:if test="${query.data.pcsid eq '' || query.data.pcsid eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dictwo" items="${dictwo}">
                                <option value="${dictwo.id}" <c:if test="${dictwo.id eq query.data.pcsid}">selected</c:if>>${dictwo.name}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td> 社区：</td>
                    <td>
                        <select class="combox" name="sqid" id="yhxxqsqsel">
                            <option value="" <c:if test="${query.data.sqid eq '' || query.data.sqid eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dicthree" items="${dicthree}">
                                <option value="${dicthree.id}" <c:if test="${dicthree.id eq query.data.sqid}">selected</c:if>>${dicthree.name}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td>
                        <label style="width: auto;line-height: 25px;">隐患类：</label>
                        <select class="combox" name="yhlb" ref="childtype" refUrl="<c:url value="/danger/childtype"/>?id={value}">
                            <option value="" <c:if test="${query.data.yhlb eq '' || query.data.yhlb eq null}">selected</c:if>>请选择</option>
                            <option value="1" <c:if test="${query.data.yhlb eq 1|| query.data.yhlb eq '1'}">selected</c:if>>三合一</option>
                            <option value="2" <c:if test="${query.data.yhlb eq 2|| query.data.yhlb eq '2'}">selected</c:if>>出租房</option>
                            <option value="3" <c:if test="${query.data.yhlb eq 3|| query.data.yhlb eq '3'}">selected</c:if>>电瓶车</option>
                        </select>
                    </td>
                    <td>
                        <label style="width: auto;line-height: 25px;">隐患子类：</label>
                        <select class="combox" name="childtype" id="childtype">
                            <option value="" <c:if test="${query.data.childtype eq '' || query.data.childtype eq null}">selected</c:if>>请选择</option>
                            <c:forEach var="dicfour" items="${dicfour}">
                                <option value="${dicfour.childtype}" <c:if test="${dicfour.childtype eq query.data.childtype}">selected</c:if>>${dicfour.name}</option>
                            </c:forEach>
                        </select>
                    </td>

                    <td>
                        <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                    </td>
                </tr>

            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    <%--<div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="<c:url value='/kcgl/toAdd'/>" target="dialog" mask="true" resizable="false"
                   width="900" height="600" title="新增课程"><span>新增课程</span></a></li>
            <li class="line">line</li>
            <li><a title="确实要发布这些课程吗?" target="selectedTodo" callback="callbackForPUB" rel="pubids"  postType = 'string' href="<c:url value="/kcgl/pubMore"/> " class="edit"><span>批量发布</span></a></li>
            <li class="line"></li>
            &lt;%&ndash; <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>&ndash;%&gt;
        </ul>
    </div>--%>
    <table class="table" width="100%" layoutH="86">
        <thead>
        <tr>
            <th width="40"  align="center">序号</th>
            <th width="180" align="center">编号</th>
            <%--<th width="100">类型</th>--%>
            <th width="120"  align="center">上传时间</th>
            <th width="120"  align="center">区</th>
            <th width="120" align="center">街道</th>
            <th width="120" align="center">社区</th>
            <th width="80" align="center">采集员</th>
            <th width="80" align="center">审核员</th>
            <th width="80" align="center">反馈员</th>
            <th align="center">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${pager.list}" var="list" varStatus="state" >
            <tr>
                <td>${state.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td style="text-align: left;">${list.seqid}</td>
                <td><fmt:formatDate value="${list.createtime}" pattern="yyyy-MM-dd"/></td>
                <td>${list.fjid}</td>
                <td>${list.pcsid}</td>
                <td>${list.sqid}</td>
                <td>${list.cjy}</td>
                <td>${list.shy}</td>
                <td>${list.fky}</td>
                <td>
                    &nbsp;
                    <a href="<c:url value='/danger/info/detail'/>?id=${list.id}&type=3" target="dialog" mask="true" resizable="false"
                       width="600" height="600" title="查看详情" rel="page_info_detail">查看详情&nbsp;</a>
                    <a href="<c:url value='/dangerInfo/sh'/>?id=${list.id}&type=1" title=" 确认审核【${list.seqid}】吗?"
                       target="ajaxDel" callback="callbackcz">确认审核&nbsp;</a>
                    <a href="<c:url value='/dangerInfo/th/page'/>?id=${list.id}&type=1" width="400" height="200"
                       target="dialog" >退回&nbsp;</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" <c:if test="${pager.numPerPage ==20}" >selected="selected"</c:if>>20</option>
                <option value="50" <c:if test="${pager.numPerPage ==50}" >selected="selected"</c:if>>50</option>
                <option value="100" <c:if test="${pager.numPerPage ==100}" >selected="selected"</c:if>>100</option>
                <option value="200" <c:if test="${pager.numPerPage ==200}" >selected="selected"</c:if>>200</option>
            </select>
            <span>条，共${pager.total}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.numPerPage}" pageNumShown="10" currentPage="${pager.pageNum}"></div>
    </div>
    <form id="pagerForm" method="post" action="<c:url value='/dangerInfo/sureQ'/>">
        <input type="hidden" name="pageNum" value="${pager.pageNum}"/>
        <input type="hidden" name="numPerPage" value="${pager.numPerPage}"/>
        <input type="hidden" name="orderField" value="${query.orderField}"/>
        <input type="hidden" name="orderDirection" value="${query.orderDirection}"/>
        <input type="hidden" name="start" value="<fmt:formatDate value="${query.start}" pattern="yyyy-MM-dd"/>"/>
        <input type="hidden" name="end" value="<fmt:formatDate value="${query.end}" pattern="yyyy-MM-dd"/>"/>
        <input type="hidden" name="fjid" value="${query.data.fjid}"/>
        <input type="hidden" name="pcsid" value="${query.data.pcsid}"/>
        <input type="hidden" name="sqid" value="${query.data.sqid}"/>
        <input type="hidden" name="yhlb" value="${query.data.yhlb}"/>
    </form>
</div>
<script type="text/javascript">
    function callbackcz(resp){
        if (resp && resp.succ) {
            alertMsg.info(resp.msg + "!");
            //$.pdialog.closeCurrent();
            navTab.reloadFlag('page_sureQ_index')
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>
